package com.java.huxb.web;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author huxb
 * @date 2020/4/25 0025 上午 11:21
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class Student {
    @NotBlank
    private String id;
    @Length(min = 2, max = 6)
    private String name;
}
